package com.cryptape.cita_wallet.util;


import android.content.Intent;

import com.alm.token.MyApp;

public class AppUtils {
    //重新启动app
    public static void restartApp() {
        Intent intent = new Intent(Intent.ACTION_MAIN);
        intent.addCategory(Intent.CATEGORY_HOME);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
        intent.setClassName("com.mangoworld.android", "com.cryptape.cita_wallet.activity.SplashActivity");
        MyApp.getsInstance().startActivity(intent);
        android.os.Process.killProcess(android.os.Process.myPid());
        System.exit(0);
    }

}
